package com.example.tree.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import lombok.*;

/**
 * <p>
 * 
 * </p>
 *
 * @author ZhengDing
 * @since 2022-02-21 23:40:09
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("user_menu")
@ApiModel(value = "UserMenu对象", description = "")
public class UserMenu implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("ID")
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @ApiModelProperty("用户id")
    @TableField("uid")
    private Integer uid;

    @ApiModelProperty("菜单id")
    @TableField("mid")
    private Integer mid;

    @ApiModelProperty("用户是否拥有此菜单(0否；1是)")
    @TableField("active")
    private Integer active;


    public static final String ID = "id";

    public static final String UID = "uid";

    public static final String MID = "mid";

    public static final String ACTIVE = "active";

}
